package cn.liumouren.jzxd.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 
 * 
 * @author Freeman Liu
 * @email llw599502537@gmail.com
 * @date 2020-10-30 16:52:42
 */
@Data
@TableName("tb_goods")
public class Goods implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private String id;
	/**
	 * 商品名称
	 */
	@ApiModelProperty("商品名称")
	private String name;
	/**
	 * 
	 */
	@ApiModelProperty("商品描述")
	private String description;
	/**
	 * 
	 */
	@ApiModelProperty("商品价格")
	private Double price;
	/**
	 * 
	 */
	@ApiModelProperty("商家的id")
	private String userId;
	/**
	 *
	 */
	@ApiModelProperty("收藏数")
	private Integer follower;
	/**
	 * 
	 */
	private Date addTime;
	/**
	 * 当前商品状态
	 */
	@ApiModelProperty("商品是否上架(1上架,0下架)")
	private Integer state;
	/**
	 * 热度
	 */
	@ApiModelProperty("热度(0-100)")
	private Integer hot;

	/**
	 * 当前商品的所有图片id用;隔开
	 */
	@ApiModelProperty("该商品包含的所有图片id,多个用;隔开(如 1;2;3;4)")
	private String picId;

	@TableField(exist = false)
	private List<String> urls;
}
